//
//  main.cpp
//  Mir_study3
//
//  Created by 종헌 백 on 12. 1. 10..
//  Copyright (c) 2012년 backssi1@naver.com. All rights reserved.
//

#include <iostream>

using namespace std;

int main ()
{
    int i,j;
    int l,m,n;
    
    cin>>l;
    cin>>m;
    cin>>n;
    
    int ***pN = new int **[l];
    
    for ( i = 0 ; i < l ; i++ );
    {
        pN[i] = new int *[m];
        for ( j = 0 ; j < m ; i++ );
        {
                pN[i][j] = new int[n];
        }
    }
    
    for ( i = 0 ; i < l ; i++ )
    {
        for ( j = 0 ; j < m ; j++ )
        {
            delete [] pN[i][j];
        }
        delete [] pN[i];
    }
    
    delete [] pN;
    
    return 0;
}
